package base

import (
	"gitcode.com/G-YT/baoyou/server/plugin/geo/api"
	"github.com/gin-gonic/gin"
)

type BaseRouter struct {
}

func (b *BaseRouter) InitBaseRouter(Router *gin.RouterGroup) {
	baseRouter := Router.Group("base")
	plugApi := api.ApiGroupApp.GeoApi
	{
		baseRouter.POST("sendCaptcha", baseApi.SendCaptcha)                       // 发送验证码
		baseRouter.POST("sendCaptchaB1", baseApi.SendCaptchaB1)                   // 发送验证码健管师端
		baseRouter.GET("getServiceCentreList", sysUserApi.GetServiceCentreList)   // 获取服务中心列表
		baseRouter.GET("getServiceStationList", sysUserApi.GetServiceStationList) // 获取服务站列表
		baseRouter.POST("upload", exaFileUploadAndDownloadApi.UploadFile)         // 单文件上传
		baseRouter.GET("getGeos", plugApi.GetGeos)                                // 获取地址列表
		baseRouter.GET("getGeoByWhere", plugApi.GetGeoInfoByWhere)                // 获取地址信息
	}
}
